package com.bdqn.ThymeleafJPA.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bdqn.ThymeleafJPA.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<User> selectUserList();

    User selectUserByNameAndPwd(@Param("name") String name, @Param("pwd") String pwd);

    List<User> selectUsersPage(@Param("roleId")Integer roleId,@Param("usrName") String usrName,
                               @Param("index") Integer index,@Param("size") Integer size);
}
